import request from '@/utils/request'

// 查询装修信息列表
export function listFitment(query) {
  return request({
    url: '/service/fitment/list',
    method: 'get',
    params: query
  })
}

// 查询装修信息详细
export function getFitment(id) {
  return request({
    url: '/service/fitment/' + id,
    method: 'get'
  })
}

// 新增装修信息
export function addFitment(data) {
  return request({
    url: '/service/fitment',
    method: 'post',
    data: data
  })
}

// 修改装修信息
export function updateFitment(data) {
  return request({
    url: '/service/fitment',
    method: 'put',
    data: data
  })
}

// 删除装修信息
export function delFitment(id) {
  return request({
    url: '/service/fitment/' + id,
    method: 'delete'
  })
}
